﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Profile.aspx.vb" Inherits="Macrography.Profile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <br />
        <asp:Button ID="Editbtn" runat="server" PostBackUrl="~/EditProfile.aspx" 
            Text="Edit Profile" />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1">
            <Columns>
                <asp:BoundField DataField="First_Name" HeaderText="First_Name" 
                    SortExpression="First_Name" />
                <asp:BoundField DataField="Last_Name" HeaderText="Last_Name" 
                    SortExpression="Last_Name" />
                <asp:BoundField DataField="UserName" HeaderText="UserName" 
                    SortExpression="UserName" />
                <asp:BoundField DataField="Description" HeaderText="Description" 
                    SortExpression="Description" />
                <asp:ImageField DataImageUrlField="Picture">
                    <ControlStyle Height="100px" Width="100px" />
                </asp:ImageField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:MacrgraphyConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:MacrgraphyConnectionString.ProviderName %>" 
            SelectCommand="SELECT [First_ Name] AS First_Name, [Last_Name], [Picture], [Description], [UserName] FROM [Portfolio] WHERE ([UserName] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="UserName" QueryStringField="UserName" 
                    Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource2" Visible="False">
            <Columns>
                <asp:BoundField DataField="First_Name" HeaderText="First_Name" 
                    SortExpression="First_Name" />
                <asp:BoundField DataField="Last_Name" HeaderText="Last_Name" 
                    SortExpression="Last_Name" />
                <asp:BoundField DataField="UserName" HeaderText="UserName" 
                    SortExpression="UserName" />
                <asp:BoundField DataField="Description" HeaderText="Description" 
                    SortExpression="Description" />
                <asp:ImageField DataImageUrlField="Picture">
                    <ControlStyle Height="50px" Width="50px" />
                </asp:ImageField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:MacrgraphyConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:MacrgraphyConnectionString.ProviderName %>" 
            SelectCommand="SELECT [First_ Name] AS First_Name, [Last_Name], [Picture], [Description], [UserName] FROM [PortfolioView]">
        </asp:SqlDataSource>
    </p>
    <p>
        <asp:Button ID="usrprobtn" runat="server" Text="Show All User Profiles" />
    </p>
    <asp:LoginName ID="LoginName2" runat="server" />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:ImageButton ID="n" runat="server" Height="41px" 
        ImageUrl="~/images/face.jpg" PostBackUrl="https://www.facebook.com/" 
        Width="31px" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
   
        <asp:ImageButton ID="twitterbtn" runat="server" Height="34px" 
        ImageUrl="~/images/twit.jpg" PostBackUrl="https://twitter.com/" Width="44px" />
    
</asp:Content>
